import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    title: '柱状图',
    name: 'Bar',
    path: '/bar',
    component: () => import('../components/bar.vue'),
  },{
    title: '条形图',
    name: 'Line',
    path: 'line',
    component: () => import('../components/bar.vue'),
  },{
    title: '饼状图',
    name: 'Pie',
    path: '/pie',
    component: () => import('../components/pie.vue'),
  },{
    title: '散点图',
    name: 'Scatter',
    path: 'scatter',
    component: () => import('../components/scatter.vue'),
  }
]

const router = new VueRouter({ 
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
